package com.zzw.jwt;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Administrator
 */
@Configuration
@EnableConfigurationProperties({JwtProperties.class})
public class JwtConfiguration {

    @Bean
    public DefaultJwtService defaultJwtService(JwtProperties jwtProperties) {
        return new DefaultJwtService(jwtProperties);
    }
}
